package cn.sdormitory.basedata.dao;

import cn.sdormitory.basedata.entity.BCourse;
import cn.sdormitory.basedata.vo.CourseQueryVo;
import cn.sdormitory.school.vo.PatrolHandleQueryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
@Component
public interface BCourseDao extends BaseMapper<BCourse> {

    Integer findPageListCount(@Param("queryVo") CourseQueryVo queryVo);

    List<BCourse> findPageList(@Param("startNum")int startNum,
                               @Param("pageSize")int pageSize,
                               @Param("queryVo") CourseQueryVo queryVo);
    /**
     * 查找出章节列表
     * @author alex
     * @param: queryVo
     * @date 2023/7/22 16:40
     * @return
     */
    List<BCourse> findSectionList(@Param("queryVo") CourseQueryVo queryVo);


    //查找所有专业下的课程
    List<Map<String,Object>> getSubjectCourse();
}
